﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebApplication1.Servidor1;

namespace WebApplication1
{
    public partial class PaginaInicio : System.Web.UI.Page
    {
        Service1 servidor;

        protected void Page_Load(object sender, EventArgs e)
        {
            servidor = new Service1();
            Session["Server"] = servidor; 
            String infoEmpresa = servidor.Obtener_Info_Empresa(Session["NombreEmpresaUsuario"].ToString());
            LogoEmpresa.ImageUrl = infoEmpresa.Split(';')[2];
            NombEmpresa.Text = infoEmpresa.Split(';')[0];
            cedula.Text = infoEmpresa.Split(';')[1];
            NombUsuario.Text = Session["NombreUsuario"].ToString();
        }
    }
}